\hypertarget{class_q_qt_nfc_client}{}\section{Q\+Qt\+Nfc\+Client Class Reference}
\label{class_q_qt_nfc_client}\index{Q\+Qt\+Nfc\+Client@{Q\+Qt\+Nfc\+Client}}


The \mbox{\hyperlink{class_q_qt_nfc_client}{Q\+Qt\+Nfc\+Client}} class Nfc\+Client既可以作为\+Client，也可以作为\+Server，它是无连接的，基于数据报的协议。 在继承自\+Q\+Qt\+Protocol的xxx\+Protocol里，直接使用\+Q\+Ndef\+Message就可以，不必使用\+Q\+Qt\+Message强制转换。 这里发送和接收都是\+Q\+Byte\+Array，可以和\+Q\+Ndef\+Message之间进行直接转换。消息没有\+I\+D，用户自行分辨\+Message。  




{\ttfamily \#include $<$qqtnfcclient.\+h$>$}

Inheritance diagram for Q\+Qt\+Nfc\+Client\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_q_qt_nfc_client}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_ae325eb6570c1b76073262253e932b173}\label{class_q_qt_nfc_client_ae325eb6570c1b76073262253e932b173}} 
void {\bfseries slot\+Write\+Data} (const Q\+Byte\+Array \&bytes)
\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_a4413122da1762c6180e78530de81d040}\label{class_q_qt_nfc_client_a4413122da1762c6180e78530de81d040}} 
void {\bfseries ready\+Read} (const Q\+Byte\+Array \&bytes)
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_acc67f89320ae2bb08c53bd1598604f3e}\label{class_q_qt_nfc_client_acc67f89320ae2bb08c53bd1598604f3e}} 
{\bfseries Q\+Qt\+Nfc\+Client} (Q\+Object $\ast$parent=Q\+\_\+\+N\+U\+L\+L\+P\+TR)
\item 
void \mbox{\hyperlink{class_q_qt_nfc_client_aa6ac0c535ce6014b43e3291c4316e605}{install\+Protocol}} (\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$stack)
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_ad4cd4351d05fbe8bc686c7627a781ec0}\label{class_q_qt_nfc_client_ad4cd4351d05fbe8bc686c7627a781ec0}} 
void {\bfseries uninstall\+Protocol} (\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$stack)
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_a48976d2d4521e7dfca8f1346d629e85a}\label{class_q_qt_nfc_client_a48976d2d4521e7dfca8f1346d629e85a}} 
\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$ {\bfseries installed\+Protocol} ()
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_a42e78f73bbb6e312aa8dafbcceb7553d}\label{class_q_qt_nfc_client_a42e78f73bbb6e312aa8dafbcceb7553d}} 
virtual Q\+Byte\+Array {\bfseries uid} () const override
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_a64e7385348035db384718c7ceb8e2ab4}\label{class_q_qt_nfc_client_a64e7385348035db384718c7ceb8e2ab4}} 
virtual Type {\bfseries type} () const override
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_a763e006405a3b98b354f4c27343efa2b}\label{class_q_qt_nfc_client_a763e006405a3b98b354f4c27343efa2b}} 
virtual Access\+Methods {\bfseries access\+Methods} () const override
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_a8ab7e686f6a1da0b74d42585c7ac2b1a}\label{class_q_qt_nfc_client_a8ab7e686f6a1da0b74d42585c7ac2b1a}} 
virtual void {\bfseries set\+Uid} (Q\+Byte\+Array uid)
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_ac450771d14ff1b5eaad7ae3aa98e45be}\label{class_q_qt_nfc_client_ac450771d14ff1b5eaad7ae3aa98e45be}} 
virtual void {\bfseries set\+Type} (Type type)
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_a0d384c532a0c8cbd55156a9079b6a354}\label{class_q_qt_nfc_client_a0d384c532a0c8cbd55156a9079b6a354}} 
virtual void {\bfseries set\+Access\+Methods} (Access\+Methods methods)
\end{DoxyCompactItemize}
\subsection*{Protected Slots}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{class_q_qt_nfc_client_ab4ca864da3b110d3bae616d31abca2cb}\label{class_q_qt_nfc_client_ab4ca864da3b110d3bae616d31abca2cb}} 
void {\bfseries ready\+Read\+Ndef\+Message} (const Q\+Ndef\+Message \&)
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \mbox{\hyperlink{class_q_qt_nfc_client_a5b8bb64f83317f7d12370c473a66e4f0}{translator}} (const Q\+Byte\+Array \&bytes)
\begin{DoxyCompactList}\small\item\em translator 用于拆分和分发数据报 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \mbox{\hyperlink{class_q_qt_nfc_client}{Q\+Qt\+Nfc\+Client}} class Nfc\+Client既可以作为\+Client，也可以作为\+Server，它是无连接的，基于数据报的协议。 在继承自\+Q\+Qt\+Protocol的xxx\+Protocol里，直接使用\+Q\+Ndef\+Message就可以，不必使用\+Q\+Qt\+Message强制转换。 这里发送和接收都是\+Q\+Byte\+Array，可以和\+Q\+Ndef\+Message之间进行直接转换。消息没有\+I\+D，用户自行分辨\+Message。 

这个\+Client是个raw客户端，数据全都在\+Message里的各个\+Record的\+Pay\+Load里， 而\+Pay\+Load里的数据格式，用户自行编订。 

\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_q_qt_nfc_client_aa6ac0c535ce6014b43e3291c4316e605}\label{class_q_qt_nfc_client_aa6ac0c535ce6014b43e3291c4316e605}} 
\index{Q\+Qt\+Nfc\+Client@{Q\+Qt\+Nfc\+Client}!install\+Protocol@{install\+Protocol}}
\index{install\+Protocol@{install\+Protocol}!Q\+Qt\+Nfc\+Client@{Q\+Qt\+Nfc\+Client}}
\subsubsection{\texorpdfstring{install\+Protocol()}{installProtocol()}}
{\footnotesize\ttfamily void Q\+Qt\+Nfc\+Client\+::install\+Protocol (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_q_qt_protocol}{Q\+Qt\+Protocol}} $\ast$}]{stack }\end{DoxyParamCaption})}

Target信息 协议安装器 \mbox{\Hypertarget{class_q_qt_nfc_client_a5b8bb64f83317f7d12370c473a66e4f0}\label{class_q_qt_nfc_client_a5b8bb64f83317f7d12370c473a66e4f0}} 
\index{Q\+Qt\+Nfc\+Client@{Q\+Qt\+Nfc\+Client}!translator@{translator}}
\index{translator@{translator}!Q\+Qt\+Nfc\+Client@{Q\+Qt\+Nfc\+Client}}
\subsubsection{\texorpdfstring{translator()}{translator()}}
{\footnotesize\ttfamily void Q\+Qt\+Nfc\+Client\+::translator (\begin{DoxyParamCaption}\item[{const Q\+Byte\+Array \&}]{bytes }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [protected]}, {\ttfamily [virtual]}}



translator 用于拆分和分发数据报 


\begin{DoxyParams}{Parameters}
{\em bytes} & \\
\hline
\end{DoxyParams}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/qqtnfcclient.\+h\item 
R\+:/\+Develop/a0-\/develop/\+Lib\+Q\+Qt/src/network/qqtnfcclient.\+cpp\end{DoxyCompactItemize}
